<?php
	require("../wp-blog-header.php");
	require("event-config.php");

	if(!isset($_GET['p']))
    {
        header("Location: error.php");
    }
    else
    {
    	$event_id = $_GET['p'];
    	if(get_user_role() == "administrator")
		{
			header("Location: list-attendee-admin.php?p=$event_id");
		}
		else
		{
			header("Location: list-attendee-user.php?p=$event_id");
		}
    }
?>